fixing bug 'select' for windows