fixed bug in tppsth