fixed group id generation