fix bug for not updating workload