diff --git a/include/xsdformprinter/types.php b/include/xsdformprinter/types.php
index 86eca8f48..d1e32b1bd 100644
--- a/include/xsdformprinter/types.php
+++ b/include/xsdformprinter/types.php
@@ -1,5 +1,5 @@
types['string']='';
+$this->types['string']='';
$this->types['date']='';
$this->types['boolean']='';
$this->types['file']='';