small bug fix in spectra.plot()