fixed index error when ingesting raw spectra