fixes disconnection