fix the task queue