fixes to inventory