Fixing a bug with the item list