Bugfix: persisting data for stats