fixed some stuff with rerendering territory