Fix ports even if ProtocolVersion is 2 but is not provided