Fix territory handling on home page