fixed a connection bug in torture test