fix export-related bug