diff --git a/coolamqp/framing/compilation/content_property.py b/coolamqp/framing/compilation/content_property.py
index 29c5ae45791e5279e5640977413050e89acf0152..776291d08c44168bbbc89eed14f0f8cee58e8697 100644
--- a/coolamqp/framing/compilation/content_property.py
+++ b/coolamqp/framing/compilation/content_property.py
@@ -121,11 +121,11 @@ def _compile_particular_content_property_list_class(zpf, fields):
 
     return u''.join(mod)
 
-
 def compile_particular_content_property_list_class(zpf, fields):
-    q = _compile_particular_content_property_list_class(zpf, fields)
     import struct
     from coolamqp.framing.base import AMQPContentPropertyList
+    q = _compile_particular_content_property_list_class(zpf, fields)
+
     loc = {'struct': struct, 'AMQPContentPropertyList': AMQPContentPropertyList}
     exec (q, globals(), loc)
     return loc['ParticularContentTypeList']