fix jacobian sign