fix the wrong call to child_added/child_removed