bug solved with Curve.save