Correcting markup errors