fixing broken HTML tags