fix bug in mutil-threads