fixes recursion error in GetChildrenRecursive