fix var export error.