Changed comparing id of the items.