fixing a children bug