Fix error in Impetus.getSpectrum() if length isn't defined