fix reconnect logic