Corrections to begin/endContour()