What you're doing is changing the uiName and not the datablocks, then. The game loads the default gun's datablocks, then it loads your gun and thinks "oh these datablocks are the same, we'll just replace the data".
Not far before the uiName, there should be a line saying datablock(gunItem) or something. Change THAT, too.