fix for win file api