+/- fix three search bugs.

Signed-off-by: Euhow <euhowzy@gmail.com>