Yeah, it seems that sometimes the Item dropdown for the wrench will default to something random. Also the system to stop you selecting the same item twice should be removed:
If you spawn a gun, but want to rotate it, you open the gui again - but gun has switched to hammer as you already have gun, so you need to set the rotation, then do it again to get the gun back.