Small error in new code, replace series variable with collection in _get_children_ids