bugfix related with the definition of empty custom hessian and jacobian indexes