moved the fix in html2pdf up