fix bug can't export files on windows