fix public port param reading