fixed a bug in make_lightcone