Fixing stats.php