fixing analytics bug