fixed events analytics bug