diff --git a/xbmc/guilib/GUIIncludes.cpp b/xbmc/guilib/GUIIncludes.cpp index 55d967346f1f5..da8f3a33c943e 100644 --- a/xbmc/guilib/GUIIncludes.cpp +++ b/xbmc/guilib/GUIIncludes.cpp @@ -529,7 +529,8 @@ void CGUIIncludes::InsertNested(TiXmlElement *controls, TiXmlElement *include, T } child = child->NextSiblingElement(); } - target->RemoveChild(nested); + if (nested != node) + target->RemoveChild(nested); } }