Fixed Faction detection issue