fix select issue on windows