bugfix in Analytics.php