diff --git a/Civi/DataProcessor/DataSpecification/DataSpecification.php b/Civi/DataProcessor/DataSpecification/DataSpecification.php
index 807aacddc3cf7c3ed08f4439f9a0318a86bd06e3..5575da99294f38e8aa1888fad6e97069d9ec3e79 100644
--- a/Civi/DataProcessor/DataSpecification/DataSpecification.php
+++ b/Civi/DataProcessor/DataSpecification/DataSpecification.php
@@ -63,6 +63,8 @@ class DataSpecification {
     foreach($this->fields as $field) {
       if ($field->getName() == $name) {
         return $field;
+      } elseif ($field->name == $name) {
+        return $field;
       }
     }
     return null;
@@ -89,7 +91,7 @@ class DataSpecification {
    */
   public function doesFieldExist($name) {
     foreach($this->fields as $field) {
-      if ($field->name == $name) {
+      if ($field->getName() == $name || $field->name == $name) {
         return true;
       }
     }