bug fix in Pmi equation