Fix output of NewtonProg