fix the bug of search