Correct handle of custom color, sf bug #427