fixed the Tag bug