fixed var lockup scope