Fix segfault when setting a color transformation