fix bug when lots of search results