fix bug on AnalyticsController