Fix bug in search page.