Fixed some packet generation with threadID