Correction on the Pdf generation