fixed on_stats