fix empty variable values when exporting system function