Correct formula in hessian