         lightChart.show()
 
     @resetRefreshTimer()
-    Muleview.event "viewChange", @keys, @currentRetName
+    Muleview.event "viewChange", @keys, @retention
 
   fixDuplicateAndMissingTimestamps: (data) ->
     recordsByTimestamp = {}

      data: @data[retName]

  showRetention: (retName) ->
    @currentRetName = retName
    @renderChart()

    @retentionsMenu.select(retName)

      # 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:
