fix error when search has no result