fix bugs for html_page.