fixed pdf download problem