fix mixpanel initialization