Inventory rendering now works correctly