fixed issue with search results not being dismissed