fix one issue which will cause ArrayIndexOutOfBoundsException when archiving workload