Fixed bug in computeHessianType