Fix bug in group class