fixes to wkhtmltopdf call