Fix scan issue on Windows.