fix infinite recursion in HtmlBase