Fix xml exception error