Fix thread module