Fix bugs on export TS graph