Fixed error with spectral class