fix spectra upload