diff --git a/KafNafParserMod.py b/KafNafParserMod.py
index <HASH>..<HASH> 100644
--- a/KafNafParserMod.py
+++ b/KafNafParserMod.py
@@ -362,6 +362,9 @@ class KafNafParser:
 		self.opinion_layer.add_opinion(opinion_obj)
 		
 	def add_linguistic_processor(self, layer ,my_lp):
+		if self.header is None:
+			self.header = CHeader(type=self.type)		
+			self.root.insert(0,self.header.get_node())
 		self.header.add_linguistic_processor(layer,my_lp)
 		
 	
diff --git a/header_data.py b/header_data.py
index <HASH>..<HASH> 100644
--- a/header_data.py
+++ b/header_data.py
@@ -85,7 +85,10 @@ class CHeader:
                 self.node = etree.Element('kafHeader')
         else:
             self.node = node
-    
+
+    def get_node(self):
+        return self.node
+            
     def to_kaf(self):
         if self.type == 'NAF':
             self.node.tag = 'kafHeader'
Fixed add_linguistic_processor when there is no header in the input file