If you are doing the "lazy install" method of using Optifine that doesn't require Forge, the .jar may not be modifying the Forge-loading version of Minecraft. Since you have to load Forge in order to run Replaymod anyway, it would probably be best to run Optifine as a mod too - if you aren't already.