fix minor search bugs