Fix IpPermissions port conversion