fixed bug in global, local variable