Fix bug: Generatting repeats on DailyTask does not work as expected.