minor fix to exporting XML modules when module is inactive.