Fix bug when start task queue