diff --git a/src/Elements/HrefVariablesElement.php b/src/Elements/HrefVariablesElement.php
index <HASH>..<HASH> 100644
--- a/src/Elements/HrefVariablesElement.php
+++ b/src/Elements/HrefVariablesElement.php
@@ -40,7 +40,7 @@ class HrefVariablesElement extends BaseElement implements ApiElement, ApiHrefVar
                     $hrefVariable->default = $memberContent['value']['attributes']['default'][0]['content'];
                 }
             } else {
-                $hrefVariable->dataType = $dataType;
+                $hrefVariable->dataType = $member->getMetaData()['title'];
                 $hrefVariable->values = [];
 
                 if (isset($memberContent['value']['content'])) {
@@ -57,4 +57,4 @@ class HrefVariablesElement extends BaseElement implements ApiElement, ApiHrefVar
 
         return $variables;
     }
-}
\ No newline at end of file
+}
Return real type

$memberContent['value']['element'] is always string, even if number was set. So I think this should be read by getMetaData() than indeed returns the right type each time.