Fixes issue with duplicate entries in search results, returning incorrrect crahsing, and crashing when a duplicate is selected.