Fix bug in auth.logout event.