fixed bug in coloring by spectral type