Fixed PGraphics issue