If you selected an item with the same name as another item(but with different ID), it would always select the first item of those two. Even if the second one was selected.
This is because i was looking for a partial match in a string by checking each item one by one. As soon as it found a match it would display the match. Even though you might have selected an item further down the list. I fixed this by checking for the list index instead of the name as this is unique.
Bookmarks