Fixed some bad logic for calculating total user losses by faction.