fix reconnect issue