Fixes #1534
Curve index is correctly resetted when its type is changed