fix replay mode