fixed warnings in spectral_contrast