Fix error in search.