fix xml generator