TCGenerator fixed

Signed-off-by: Alevtina Glonina <alevtina@lvk.cs.msu.su>