bug fixed for connexion