fixed spectral_contrast warnings