Fix mixpanel only working in production