Updated hessian with bug fixed hessian