Fix Jacobian reference frame change