fixed dynamic bugs of trapping in sendbuf