fixed var mismatch