fix search location bug