Fixed bug when only running one thread on benchmark script