fixing the pdf loader