Fix logout screen hanging