Fix end of replay.