when add a task, set the time interval as new TimeInterval() instead of null