fixed gvar bug: