Fix accidental global variable

One of the dangers of chaining with commas. Note the semicolon above the mutated line.