fix list_children bug