fix task queue add.