fix the bug of pytpcc