fixed reconnect issue