fix bug on  var