Fixed Fellows group generation code