bug fix for pdf ticket