Fixed get-index from search.