Minor fix to SpectralAnalysis class.