Fix pdf download issue.