Don't let the contrast values cross