Fix isLogged