Fixed numeric problems in workload generator