fixed errors with search box