fix matrixA overlap