Cleaned addRootJoint in parser