fix matrix.t