fixed a bug in tc