fix subcases for group inside repeat