fixed 2 bugs one related to a lack of reseting information appropiately, another related to setting tag name incorrectly