Fix HTML closing errors