Fixed bug sending user stats to file