fix bug in libshape's StageCanvas::onDraw()