Tries to fix some bugs in the search engine.