Fixing the logout.