fix several bugs in lensing, simulation and spectra routines.