Adjust sign of Hessian of Lagrangian.