hopefully fix undefined values in mixpanel