Fixed small error in GenerateChildren