bugfix for loading territories