fixed bugs in angular TPCF