sun: fix repeat to do what its supposed to