fix CGContextClosePath: no current point.