Fixes enabling pdfBug
Merge pull request #5367 from yurydelendik/fixpdfbug

Fixes enabling pdfBug