Fixed Inventory off by one error