Fixed a bug with repetitions not changing.