fixed restart bug and territory continuity bug