fix the task bug