Fixed one of the mem issues with ExportVariable.