fixed the bug of running TP and none