Swap a 'max' for a 'min', fixing an out-of-range colour component