bugfix: beginning of TCP messages were sometimes lost