Fixed run the matrix integration bug