fixes adapter disconnect