fixes log/replay