parsing object classes more properly


git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@1062 59561ff5-6e30-0410-9f3c-9617f08c8826
diff --git a/libasn1fix/check_fixer.c b/libasn1fix/check_fixer.c
index a64d9bd..c4e3f99 100644
--- a/libasn1fix/check_fixer.c
+++ b/libasn1fix/check_fixer.c
@@ -185,8 +185,10 @@
 		std_asn = asn1p_parse_file("../skeletons/standard-modules/ASN1C-UsefulInformationObjectClasses.asn1", A1P_NOFLAGS);
 		if(std_asn) {
 			asn1p_module_t *mod;
-			while((mod = TQ_REMOVE(&(std_asn->modules), mod_next)))
+			while((mod = TQ_REMOVE(&(std_asn->modules), mod_next))) {
+				mod->_tags |= MT_STANDARD_MODULE;
 				TQ_ADD(&(asn->modules), mod, mod_next);
+			}
 			asn1p_free(std_asn);
 		}
 	}