     @range = Collections('Range1d').create({start: -20, end: 20})
 
     @model = Collections('Plot').create(
-      x_range: @range
-      y_range: @range
+      x_range: @range.ref()
+      y_range: @range.ref()
       border_fill: "#fff"
       canvas_width:  options.width
       canvas_height: options.height

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

    yaxis = Collections('GuideRenderer').create(

        location: 'min'
        bounds: 'auto'
      }
      plot: @model.ref()
    )

    glyph = Collections('GlyphRenderer').create({
      data_source: @source.ref()
      xdata_range: @xrange.ref()
      ydata_range: @yrange.ref()
      glyphspec: {
        type: 'multi_line'
        line_color: 'darkblue'
        xs: 'idx'
        ys: 'ys'
      }
    })

    @model.add_renderers([glyph.ref(), xaxis.ref(), yaxis.ref()])
    @view = new @model.default_view(model: @model)

  update: (ys) ->
