Fixed replacenode