Fix color transformation