Made some fixes to TCP and TCB