fixed a bug on analytics for unlocked mode