Fix to writing of spectra index column