Minor fix to group id generation.