fix tag add and remove method