fix #155 base html bugs