fix error on windows.

windows can't treat /dev/null.