fixes incorrect search behavior