fixed setting matrix.