Important Logout bugfix