bug fixing

I've made a mistake here.`this.groups` should be replaced with `groups`.