fix tag edit