Fix end tag