Ensure  var is set. #857