Fixes numbering in presence of several IPs.