Fix bug with click on search results