fixed tag-name-lowercase bug, would raise error on non tag types