Fix a few bugs in the move recorder.