anchor.diff:      StateData = send_tls_alert(Alert, StateData0),
       {next_state, ?FUNCTION_NAME, StateData};
   connection(cast, {new_write, WritesState, Version}, 
  -           #data{connection_states = ConnectionStates0} = StateData) -> 
  +           #data{connection_states = ConnectionStates, static = Static} = StateData) ->
       {next_state, connection, 
        StateData#data{connection_states = 
  -                        ConnectionStates0#{current_write => WritesState},
  -                    negotiated_version = Version}};
  -%%
  -connection(info, dist_data, #data{dist_handle = DHandle}) ->
  +                        ConnectionStates#{current_write => WritesState},
  +                    static = Static#static{negotiated_version = Version}}};
  +%%
  +connection(info, dist_data, #data{static = #static{dist_handle = DHandle}}) ->
       {keep_state_and_data,
         case dist_data(DHandle) of
             [] ->
  
positive.code:     error_logger:error_report(Report),
      keep_state_and_data.
  
  send_tls_alert(Alert, #data{negotiated_version = Version,
                              socket = Socket,
                              protocol_cb = Connection, 
                              transport_cb = Transport,
                              connection_states = ConnectionStates0} = StateData0) ->
      {BinMsg, ConnectionStates} =
  	Connection:encode_alert(Alert, Version, ConnectionStates0),
  
negative.code: %%
  %% %CopyrightBegin%
  %%
  %% Copyright Ericsson AB 2018-2019. All Rights Reserved.
  %%
  %% Licensed under the Apache License, Version 2.0 (the "License");
  %% you may not use this file except in compliance with the License.
  