Fix number of workers calculation.