Revert "fixes crashes when exporting from gamestats"

This reverts commit 2d2ae56740028ea5901e716b0cb48c8f82adf75e.
Revert "Revert "fixes crashes when exporting from gamestats""

This reverts commit 70e16942d169c5dbf99dbe0962faf6b5dbbacd09.