Fixed bug where removed child would keep reference to parent.