Fix addInventory method