Bug fix for Curve types: they were not used because we were in the constructor of Curve