Revert to previous version of computeHessianType