fix windows eoferror