fixes error in length calculation of Bezier