fixed the tag bug