Fix accidental global variable

One of the dangers of chaining with commas.