fixed isMatSymmetric