Fixed the item identification routine