fix closing tags for anchors