fixed nonlinear residual update in newton solve