bugfix for tcp