diff --git a/Source/Processors/RecordNode.cpp b/Source/Processors/RecordNode.cpp
index 2876e96662dc71a8cb97c7d68f161abeb97cdf26..b40df5ae339aac642969ecf316d5f14d99e2ae85 100755
--- a/Source/Processors/RecordNode.cpp
+++ b/Source/Processors/RecordNode.cpp
@@ -370,6 +370,10 @@ String RecordNode::generateHeader(Channel* ch)
 
 	String header = "header.format = 'OPEN EPHYS DATA FORMAT v0.0'; \n";
 
+	header += "header.header_bytes = ";
+	header += String(HEADER_SIZE);
+	header += ";"
+
 	if (ch->isEventChannel)
 	{
 		header += "header.description = 'each record contains one 64-bit timestamp, one 16-bit sample position, one uint8 event type, one uint8 processor ID, one uint8 event ID, and one uint8 event channel'; \n";
@@ -396,9 +400,9 @@ String RecordNode::generateHeader(Channel* ch)
 
 		header += "header.channelType = 'Continuous';\n";
 
-		header += "header.sampleRate = '";
+		header += "header.sampleRate = ";
 		header += String(ch->sampleRate);
-		header += "';\n";
+		header += ";\n";
 	}
 
 	header += "header.bitVolts = ";