fix output xml bug