Possible Bug: Getting error message while creating PDF file