Fixed two search bugs.