Fix error when multiple ip addresses are returned.