fixed key connection. Now working ok