diff --git a/linkit.module b/linkit.module
index ccb0a2d..163c2a7 100644
--- a/linkit.module
+++ b/linkit.module
@@ -1045,6 +1045,8 @@ function linkit_pre_render_editor_element($element) {
     $all_formats = array_keys(filter_formats($user));
 
     $profiles_formats = array();
+    
+    $use_imce = FALSE;
 
     // First we need to figure out which formats that the current user can access have active Linkit profiles for them.
     foreach ($all_formats as $format) {
@@ -1052,6 +1054,9 @@ function linkit_pre_render_editor_element($element) {
       $profile = linkit_profile_load_by_format($format);
 
       if ($profile) {
+        if (isset($profile->data['imce']) && $profile->data['imce'] == 1) {
+          $use_imce = TRUE;
+        }
         $profiles_formats[$format] = array('profile' => $profile->name);
       }
     }
@@ -1068,7 +1073,7 @@ function linkit_pre_render_editor_element($element) {
       );
 
       // Configure Linkit to have an IMCE selector.
-      if (module_invoke('imce', 'access') && isset($profile->data['imce']) && $profile->data['imce'] == 1) {
+      if (module_invoke('imce', 'access') && $use_imce) {
         $field_js['data']['linkit']['IMCEurl'] = url('imce', array('query' => array(
           'app' => 'Linkit|sendto@Drupal.linkit.IMCECallback',
           'absolute' => TRUE,
