Modify residual to multiply by M^T