fix some tag bugs