avoid trying to modify frozen tag object

fixes #1380