fix a sign error in the residual