Fixed bug in Repeat.reverse()