Fix bug with analytics.