generateChilds fix