fix reconnect