fix thred error