Fix `ports` type, iterator did not conform.