Fix TCP/IP context swtiching