fix more global var accesses (thanks to lualint)