fixed an issue in WorkerPool