Correctly handle setting active the active curve.