fix search with blank location