Fix bug in Group API