fix how tag is returned when editing a node