fix count territory