Fix for #3232 var export

Fix for #3232 var export