fix issue with fmpz_jacobi