tcp_agent bug fix, to support different version of message header