bugfixing for autosaving and save spectra...