Fixing the issue for pdf