minor searching bug