fixed bug on list_groups