fix onHtml callback