fix tag editing