Fixed many inventory glitches