corrects commas in hashes