Fix search bar not closing after seeing results