fix bug that cann't export files on windows