fixed problem with lightcurves.iter