PDF download fix