fix for broken pdfs