fixing RepeatingTemplate