Fix group type. AD expects an integer for group category