Fix set value for repeats