Fixing the pdf issues