fixed inventory bug when switching weapon and armor