fixed bug with wrong pointer to tag name