correcting errors on finished markup