Line search: objective function at lambdas = 1. is Inf or Nan, cutting lambda