Fix a bug in AutoWorkBench

The bug may affect client performance