Fixed crash when saving long replays.