Fixed Hessian bug