fix bugs logout