Fixed problem with previous list item not being selected