Fixed compilation bug in TerritoryGroupCallback