fixed log out error