fix an issue: cannot save tag.