Correct any grammar problems in this sentence:
The court was in an uproar, but spectators subsided when the judge asked to be quiet.
The court was in an uproar, but spectators subsided when the judge asked them to be quiet.