Fix the replace code commands.