fix bug in the WSGroup