fixed bug in analytics code