fix the issue of search