fixed bug in benchmark script