Fixed stats.php for real