don't replace tag in infer-tag if the node already has it