fixed condition of exit in Newton