Fixed a small bug in Spectrum which occured when reading in a spectrum from an hdf5 file.