Fix bug in data1_tag_add_attr (bug introduced in last commit)