Fixed bug with search bar not closing