fix some XML validation errors.