Fixed residuals for both M1 and M2