Fixed another bug in #tdy, #tmr and #upc

Fixed a bug which will add same task more than once if the task has
multiple dates.