Corrected a syntax error in the Thread.cs and Message.cs