Fixed error when argument passed in for factiontier wasn't an integer.