Corrects closing tag