bug fix in analytics