fixed the exporting file issue