Do some fixes for battle recording.