fix error logout