 
             # Group forwarding
             if config.forwardGroups and config.async
-              if outPorts.length is 1
+              if config.outPorts.length is 1
                 outs.beginGroup g for g in groups
               else
                 for name, out of outs

                  obj[port] = {} ; obj[port][index] = payload
                else
                  obj[port] = payload
                if inPorts.length is 1 and
                component.inPorts[port].isAddressable() and
                (config.arrayPolicy.in is 'any' or
                component.inPorts[port].listAttached().length is 1)

      else
        # At least one of the outputs has to be resolved
        # for output streams to be flushed.
        if config.outPorts.length is 1
          tmp = {}
          tmp[config.outPorts[0]] = streams
          streams = tmp
        for key, stream of streams
          if stream.resolved
