fix loadPDF