fix for computing jacobian when the root_joint is not an active joint