bugfix in analytics blocks code