Repeater bug fix

There is a type casting bug in my last commit. It should be fixed.