Properly set mechanism to CURVE when setting a curve option