fixed TypeError: Determined type is RigJoint