Corrected bug for deconnexion