Fixed bug in Spectrum plotting