SOLVED THE PROBLEM.  It turns out that I accidentally made the children list a global variable