Fixed bug in worker id check.