Updating the curve initialization

Same fix as #151 but for curves