Really fixed export_stats