Fixed initialization bug in Bezier2, Bezier3 and LineSegment