Fix  for logout