fix global variable

quick fix