Fix bug in momentum inversion symmetry in jacobian