Fix Mixpanel code