fix patchy assignment of group_type