fixing PDF generation
fixing PDF generation