fix issue #195 in pdfkit repo