Fix replace-vars for multiple replacements in a node