Inventory: solved problem of new rows appearing twice.