Fix small bug in analytics