Fix global variables -> local variables
Fix global variables -> local variables

Should fix https://chat.stackexchange.com/transcript/message/41909831#41909831

j-f1/forked-metasmoke,j-f1/forked-metasmoke,Charcoal-SE/metasmoke,Charcoal-SE/metasmoke,j-f1/forked-metasmoke,Charcoal-SE/metasmoke,j-f1/forked-metasmoke,Charcoal-SE/metasmoke