fix a bug, local search