Try to fix PDF generation