fixes for print-pdf