Fix small issue in scaffolding replace task.