Fixes incorrect search.