fixed add task failed.