fix pdf download