fix the repeat()