fix timetask bug