fix reconnecting