xGraphics fix bug in example