fix, transformation matrix for gradients

Change-Id: Ib93937ab944c7197824b7c618eada4ad70e64cb0