some fix for pdfs