correction to onRepeat
Merge pull request #31 from Hasufel/patch-1

correction to onRepeat