Fix logout error