Fix finding the id of an item