corrected mistakes in tgClient.cs