Fixed some issues in html search.