Fixed bug in removeTags().