plotspectrum bugs fixed