fixed a bug with melee weapons