Fix group_value verification in insertGroups function