fix bug downloding spectra