If I drag an item, say a medkit, from my backpack to the primary weapon slot, it will swap places with the currently equipped weapon. this usually costs 16 TUs. Sounds like you've got some kind of bug going on! There's a forum specifically for bug reports, I think, so you should check that out and let GH know what's going on in your game.