diff --git a/lib/utils/templatize.html b/lib/utils/templatize.html
index 0430f3c0dd..18a1161095 100644
--- a/lib/utils/templatize.html
+++ b/lib/utils/templatize.html
@@ -182,7 +182,7 @@
const parent = n.__polymerParent__;
const replace = n.__polymerReplaced__;
if (parent && replace) {
- parent.replaceChild(n, n.__polymerReplaced__);
+ parent.replaceChild(n, replace);
}
}
}