fix cmatrix bug