Fixes inventories being glitchable