Doh! Solved my own problem by looking more closely at the error message. I missed one replace in the cloning.

Problem with trying to go too fast, I guess!