fix xml import/export