           default: 'YlGnBu-9'
       }
     })
-
-    @model.add_renderers([glyph, xaxis, yaxis])
+    @model.add_renderers([glyph.ref(), xaxis.ref(), yaxis.ref()])
     @view = new @model.default_view(model: @model)
 
   update: (fft) ->


window.TIMESLICE = 40 # ms

BORDER = 50

NGRAMS = 800

HIST_NUM_BINS = 16

      x_range: @xrange.ref()
      y_range: @yrange.ref()
      border_fill: "#fff"
      canvas_width: options.width
      canvas_height: options.height
      outer_width: options.width
      outer_height: options.height
      tools: []
      title: ""
    )

    xaxis = Collections('GuideRenderer').create(
      plot: @model.ref()
      guidespec: {
        type: 'linear_axis'
        dimension: 0
      }
    )

    yaxis = Collections('GuideRenderer').create(
      plot: @model.ref()
      guidespec: {
        type: 'linear_axis'
        dimension: 1
      }
    )

    glyph = Collections('GlyphRenderer').create({
      data_source: @source.ref()
      xdata_range: @xrange.ref()
      ydata_range: @yrange.ref()
      glyphspec: {
        type: 'image_rgba'
        x: 'x'
