Transform matrix. Stage dim bug solved.