fixed remove_child_cfg(), use correct enumerator for remove_at