Fix unsupported repeat()