close #100. Fix the bug that a task cannot automatically detect if it is overdue.