fix bug of duplicate group id