fixed xml cleanup
Merge branch 'stable'