Fixed bug in analytics view