                   if groupLength is requiredLength
                     data = (_wp(scope).groupedData[key].splice i, 1)[0]
                     # Strip port name if there's only one inport
-                    if inPorts.length is 1 and inPort.isAddressable()
+                    if config.inPorts.length is 1 and inPort.isAddressable()
                       data = data[port]
                     groups = (_wp(scope).groupedGroups[key].splice i, 1)[0]
                     if collectGroups is true

# Takes WirePattern configuration of a component and sets up
# Process API to handle it.
setupProcess = (component, config, func) ->
  # Make param ports control ports
  setupControlPorts component, config
  # Set up sendDefaults function


            # Prepare outputs
            outs = {}
            for name in config.outPorts
              wrp = new OutPortWrapper component.outPorts[name], scope
              if config.async or config.sendStreams and
              config.sendStreams.indexOf(name) isnt -1
