telemetry: fix using ports of different types