bug fixed "add thread"