Fix spectral index check