fix error in inventory details