Added code to remove dangling children features