fix saveAsHtml