fix a search page bug