Fixed maxIndex in pinfo