bugfix on analytics.php