fixbug: thread data and replies appended wrong...