fix the code of search enhance