fix for unlimited items in inventory.