- fix bug in get output by thread