fix the bug of the queue has no task_done method