fix bug on windows

to handle over-flash situation, perhaps not work