fixed the saveChildren bug