fix naming confusion of public_port/service_port attribute