bug fix for pprinter