   return null
 
 Editor::handleTextInputClickInPalette = (palettePoint) ->
-  for entry in @currentPaletteBlocks
+  for entry in @session.currentPaletteBlocks
     hitTestResult = @hitTestTextInputInPalette palettePoint, entry.block
 
     # If they have clicked a socket, check to see if it is a dropdown


hook 'redraw_palette', 0, ->
  bounds = new @draw.NoRectangle()
  for entry in @currentPaletteBlocks
    bounds.unite @session.paletteView.getViewNodeFor(entry.block).getBounds()

  # For now, we will comment out this line

    if @options.mode of modes
      @mode = new modes[@options.mode] @options.modeOptions
    else
      @mode = null

    # Instantiate an Droplet editor view
    @view = new view.View standardViewSettings
