Fixed factions bug