fix factions ally glitch