fixed scope issue with search bar