minor fix for inventory