fix calculation of quadratic bezier curve length