Correct the cast group id.