* fix bug: undefined 'thread';