Fix logout error.