Fix TCP sample