diff --git a/bueditor_plus.module b/bueditor_plus.module
index be021da..6751198 100755
--- a/bueditor_plus.module
+++ b/bueditor_plus.module
@@ -171,69 +171,74 @@ function _bueditor_plus_get_editor($eids, $tid) {
  */
 function bueditor_plus_process_format($element) {
 
-  // BUEditor Plus only works on entities.
-  if (!isset($element['#entity_type'])) {
-    return $element;
-  }
-
-  // We need to load in the field information for this instance and bundle.
-  $instances = field_info_instances($element['#entity_type'], $element['#bundle']);
   $profile = NULL;
-
-  // Check to make sure that this field is actually part of this
-  // bundle instance.
-  if (isset($instances[$element['#field_name']])) {
-    $instance = $instances[$element['#field_name']];
-    $allowed_fields = bueditor_plus_allowed_fields();
-
-    // We check against standard bueditor appearence rules to make sure
-    // this field is allowed to have bueditor appear on it.
-    if (isset($instance['widget']['type']) && in_array($instance['widget']['type'], $allowed_fields)) {
-
-      // We check to see if this instance has a profile. If not then we go
-      // for a global one.
-      if (isset($instance['bueditor_profile']) && $instance['bueditor_profile'] > 0) {
-        $profile = bueditor_plus_profiles($instance['bueditor_profile']);
-      }
-      else {
-        if (!isset($instance['bueditor_profile']) || $instance['bueditor_profile'] == -1) {
-          $profile = bueditor_plus_profiles('global');
+  $allowed_fields = bueditor_plus_allowed_fields();
+  
+  if (!isset($element['#entity_type'])) {
+    //This is a standard field, not in an entity.
+    
+    $profile = bueditor_plus_profiles('global');
+  } else {
+    // Field is attached to an entity.
+    // We need to load in the field information for this instance and bundle.
+    $instances = field_info_instances($element['#entity_type'], $element['#bundle']);
+
+    // Check to make sure that this field is actually part of this
+    // bundle instance.
+    if (isset($instances[$element['#field_name']])) {
+      $instance = $instances[$element['#field_name']];
+      
+      // We check against standard bueditor appearence rules to make sure
+      // this field is allowed to have bueditor appear on it.
+      if (isset($instance['widget']['type']) && in_array($instance['widget']['type'], $allowed_fields)) {
+
+        // We check to see if this instance has a profile. If not then we go
+        // for a global one.
+        if (isset($instance['bueditor_profile']) && $instance['bueditor_profile'] > 0) {
+          $profile = bueditor_plus_profiles($instance['bueditor_profile']);
+        } else {
+          if (!isset($instance['bueditor_profile']) || $instance['bueditor_profile'] == -1) {
+            $profile = bueditor_plus_profiles('global');
+          }
         }
       }
-      if (!$profile) {
-        // No profile was found for the formats so we stop processing.
-        return $element;
-      }
+    }
+  }
 
-      $element['#attributes']['class'][] = 'bueditor-plus';
-      $formats = $element['format']['format']['#options'];
-      $settings = array();
-      $tid = $element['#id'];
-
-      // Loop through our profile formats and assign the editor to the
-      // corresponding input format if it exists.
-      foreach ($profile->data as $format => $editors) {
-        $editor[$format] = _bueditor_plus_get_editor($editors, $tid);
-        if ($editor[$format] && isset($formats[$format])) {
-          _bueditor_settle($editor[$format]);
-          $settings['BUEPlus']['preset'][$tid][$format] = 'e' . $editor[$format]->eid;
-        }
-      }
-      // If there is only one format available (no dropdown) then we need to set
-      // that in our settings to prevent doing an object loop in JavaScript.
-      if (!empty($settings['BUEPlus']['preset'][$tid]) && count($settings['BUEPlus']['preset'][$tid]) == 1) {
-        $settings['BUEPlus']['defaults'][$tid] = $element['format']['format']['#default_value'];
-      }
+  if (!$profile) {
+    // No profile was found for the formats so we stop processing.
+    return $element;
+  }
 
-      // If we have found any editors we add in the needed JavaScript file
-      // and profile settings.
-      if (isset($settings['BUEPlus'])) {
-        $element['#attached']['js'][] = array('type' => 'setting', 'data' => $settings);
-        $element['#attached']['js'][] = drupal_get_path('module', 'bueditor_plus') . '/js/bueditor-plus.js';
-      }
+  $element['#attributes']['class'][] = 'bueditor-plus';
+  $formats = $element['format']['format']['#options'];
+  $settings = array();
+  $tid = $element['#id'];
+  
+  // Loop through our profile formats and assign the editor to the
+  // corresponding input format if it exists.
+  foreach ($profile->data as $format => $editors) {
+    $editor[$format] = _bueditor_plus_get_editor($editors, $tid);
+    
+    if ($editor[$format] && isset($formats[$format])) {
+      _bueditor_settle($editor[$format]);
+      $settings['BUEPlus']['preset'][$tid][$format] = 'e' . $editor[$format]->eid;
     }
   }
+  // If there is only one format available (no dropdown) then we need to set
+  // that in our settings to prevent doing an object loop in JavaScript.
+  if (!empty($settings['BUEPlus']['preset'][$tid]) && count($settings['BUEPlus']['preset'][$tid]) == 1) {
+    $settings['BUEPlus']['defaults'][$tid] = $format;
+  }
+
+  // If we have found any editors we add in the needed JavaScript file
+  // and profile settings.
+  if (isset($settings['BUEPlus'])) {
+    $element['#attached']['js'][] = array('type' => 'setting', 'data' => $settings);
+    $element['#attached']['js'][] = drupal_get_path('module', 'bueditor_plus') . '/js/bueditor-plus.js';
+  }
 
+  
   return $element;
 }
 
