Fix to log replay.