         stats.labels.push lastDate.format format
         for dataset in stats.datasets
           dataset.data.push 0
-      Messages.find stats.query.call(t)
+      msgs = Messages.find stats.query.call(t)
       ,
         fields:
           created: true

          title: true
          authors: true
        sort: created: 1
      .forEach (msg) =>
        switch unit
          when 'week'
            day = moment(msg.created).startOf 'day'

      weekDay = weekStart()
    format =
      switch unit
        when 'hour'
          'HH:mm'
        when 'day', 'week'
          'ddd, MMM DD, YYYY' #'YYYY-MM-DD'
        when 'month'
