Fix xml check.