bugfix to dynamic creation of s_groups.