Fix matrix transforms (a,b,c,d,e,f) where b != c