fixed num_workers validation issue