fix jacobian