fix to wait for valid root before asking for updateTerritory