fixed log out issue