Fix error when saving a new tag