fix output xml validation