Try to fix login/logout.