fixed fd type for windows