Fix <player.factions.x> and <npc.factions.x> tags