fixed renderHtml bug