Fix the PMI iterator to not report duplicated keys.