Fixed excessive white noise issue with spec2flat for truncated spectra.