Fixed a critical bug in the search manager.