Fix accidental globals