fix stress test client code