Fixed the bug where AttributeMatrix::deepCopy() crashes the program.