Hotfix pdf creation