Fix code to add to child list