Fixed a small error in the Spectrum class.