TaskInventory refactoring introduced a defect to ResetInventoryIDs