fix error of search