Fix: properly initialize switch id in port.