Selects search results properly