Tag editing bugfix