fix bug on getGroup