Fix no location used for search.