   editAlerts: ->
     ae = Ext.create "Muleview.view.AlertsEditor",
       key: @key
-      retention: @currentRetName
-      data: @data[@currentRetName][@key]
+      retention: @retention
+      data: @data[@retention][@key]
     ae.show()
 
   updateZoomStatsAndHighlight: (timestampMin, timestampMax) ->

    @mainChartContainer.removeAll()
    if @showSubkeys
      @mainChartContainer.setLoading(true)
      Muleview.Mule.getGraphData @key, @currentRetName, (data) =>
        @fixDuplicateAndMissingTimestamps(data)
        @alerts = Ext.StoreManager.get("alertsStore").getById("#{@key};#{@currentRetName}")?.toGraphArray(@currentRetName)
        @subkeys = Ext.Array.difference(Ext.Object.getKeys(data), [@key])
        @addChart
          showAreas: true

      # Prevent latency mess:
      return unless @lastRequestId == currentRequestId

      @lightChartsContainer.setLoading({msg: "Processing...", msgCls: "load-mask-no-image"})
      @mainChartContainer.setLoading({msg: "Processing...", msgCls: "load-mask-no-image"})


      # Enable buttons:
