Others are having the same problem, it has to do with how the weapons snap together using the orientation of the part that you're currently holding with the right mouse button. Read THIS POST, it might help you avoid this problem until the dev can come up with a patch to resolve the glitch. Happy Smithing!