Fixed a bug when changing the TC and PT configurations in the gui.