fixes crashes when exporting from gamestats