fixes error when clicking on unselected search result list