fixed saving of scanned spectra