[main] Update PortIndex.