fixed tag bug where the tag type was being saved as the tag name/