Corrected addJoint for ground, which does not have root node by default