     @yrange = Collections('Range1d').create({start: 0, end: MAX_FREQ})
 
     @model = Collections('Plot').create(
-      x_range: @xrange
-      y_range: @yrange
+      x_range: @xrange.ref()
+      y_range: @yrange.ref()
       border_fill: "#fff"
       canvas_width: options.width + options.border + 80
       canvas_height: options.height + 2*options.border

        location: 'min'
        bounds: 'auto'
      }
      parent: @model
    )

    yaxis = Collections('GuideRenderer').create(

        bounds: 'auto'
      }
      major_label_standoff: 40
      plot: @model.ref()
    )

    glyph = Collections('GlyphRenderer').create({
