Fix available groups list when assign a group to task