fixing bug in analytics
fixed analytics bug