Fix logout.