fix the pmi formula wrong