fix the pmi's bug

bug: divide by zero when t1 or t2 have not seen