Fixed

I fixed a bug in make_max_pmi_ip().