                 ctx.ports.push portIdentifier
                 @getBracketContext('out', outport, ctx.ip.scope, idx).push ctx
               forwardedOpens.reverse()
-              idxIps.unshift ip for ip in forwardedOpens
+              @addToResult result, outport, ip, true for ip in forwardedOpens
             continue
           # Don't register ports we're only sending brackets to
           datas = ips.filter (ip) -> ip.type is 'data'

            ctx.ports.push outport
            @getBracketContext('out', outport, ctx.ip.scope).push ctx
          forwardedOpens.reverse()
          ips.unshift ip for ip in forwardedOpens

    if result.__bracketClosingAfter?.length
      for context in result.__bracketClosingAfter

        for port in context.ports
          ipClone = context.closeIp.clone()
          @addToResult result, port, ipClone, true
          @getBracketContext('out', port, ipClone.scope).pop()

    if result.__bracketContext
      # First see if there are any brackets to forward. We need to reverse
