fixed global variable error

Signed-off-by: tanji <nicholastanjerome@gmail.com>