Fixed a coupe of bugs in Search Engine.