Fixed log out error