fixing undefined  var via get