fix #32826: end repeat on mmrest
Merge pull request #1313 from MarcSabatella/32826-repeat-mmrest

fix #32826: end repeat on mmrest