Fix return when XML isn't correct