Fixed inconsistent data issue with replaceNode

No match.