Fix lightcurve create.