fixed local search bug