fix bug of search