Fix lightcurve create.
Merge pull request #469 from segfaulthunter/lightcurve

Fix lightcurve create.