fix global var get