fix tag delete bug