fix double delete problems with SpectrumMaker vector and use of temporary thread3 object