fix connection retry