Fix accidental write to global variable.