Fix logout events