Fixed broken PDF generation.