tcp: fix initialization