Fix bug that gcurve(pos=[(10,20), (50,30), (-5,-3)]) drew an extra line.