fix multiple reconnects