fix not-closed tags