bug fix: modifying newton step for infeasible solution