Fixed BezierMotion algorithm