fix global variable