Fixed small error with PDF generation