fix bug with child added