fixed location search bug