fixing RepeatTemplate