             Blaze.With (new ui.ComponentStack uiType: @, container: container, stack: value, count: count), =>
               @getCounterTemplate count, container.game().rules
           else
-            Blaze.With (type: @, stack: value, container: container), =>
+            Blaze.With (uiType: @, stack: value, container: container), =>
               Blaze.Each (-> cursor), =>
                 @getCounterTemplate count, container.game().rules
     else

class ui.ComponentType
  constructor: ({@name, @width, @height, @isCounter, @stackProperty, @stackAfter,
                 @displayNameSingular, @displayNamePlural,
                 @draggable, @template} = {}) ->
    check @name, String
    check @width, Match.Optional Number
    check @height, Match.Optional Number

    @displayNamePlural ?= @displayNameSingular
    check @displayNamePlural, String
    check @template, Match.Optional String
    check @summaryTemplate, Match.Optional String
    @draggable ?= false
    check @draggable, Boolean

