Update MatrixReplacement