Fix logout problem.