Fix contrast bug

Seems there is a bug:)