This line should probably be deleted, otherwise you will always do a linear solve, even if the residual is within bounds.