fix the segmentation fault problem and the task log time problem