Note to self when changing global variables be more careful

I am an idiot