fixed error introduced for summed files in adjust_wavelength_manually