Fix error in unselectTag()