Inventory update bugfix