fix update territory