Fixed bug in each_child.