Correct invalid markup