fixed getItemsById method