fix the mistake with page.replace_html