fixed issue with commas in ranks