fix lightcurve