Fix TCP problems