diff --git a/coolamqp/framing/compilation/content_property.py b/coolamqp/framing/compilation/content_property.py
index def6f30752e564b56beb0f271895c02c12dbdcd6..4cdb877e565c8c451fea1bdb394ea442f5ef6879 100644
--- a/coolamqp/framing/compilation/content_property.py
+++ b/coolamqp/framing/compilation/content_property.py
@@ -118,5 +118,7 @@ def _compile_particular_content_property_list_class(zpf, fields):
 def compile_particular_content_property_list_class(zpf, fields):
     q = _compile_particular_content_property_list_class(zpf, fields)
     logger.debug('Compiling\n%s', q)
-    exec(q)
-    return ParticularContentTypeList
+    loc = {}
+    exec(q, globals(), loc)
+    return loc['ParticularContentTypeList']
+