Bug with deserialization of curve is fixed