Fix #9641 (broken contrast enhancement)