Fix undefined variable notice on reload

Someone forgot to make a variable global.