Fixed disposing of children