fixed: adding of new task, if end time of last task is later than start time of new task