Fixes color transform for gradients

background in #604