Wrong variable in get_group_id