   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

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

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

      state.consumedHitTest = true
      return

    for entry in @session.currentPaletteBlocks
      hitTestResult = @hitTest palettePoint, entry.block, @session.paletteView

      if hitTestResult?
