Fixed scope issue with main search field