Fix Repeat will run one more over in rare situations
Add test case for reproducing Repeat bug
Merge pull request #6871 from asuuma/v3_Repeat_fix

Fix Repeat will run one more over in rare situations