Fixes for pdfs