fixed bugs in getting a list item by id