fix to remove_child