fix missing global variable