fixed a bug that if a tag quantity becomes 0 then it needs to be destroyed.