Fix bug with number of IPs selected