Fix regression in adding/editing tags.