Index: mobile_tools.module
===================================================================
--- mobile_tools.module
+++ mobile_tools.module
@@ -227,6 +227,10 @@
   if(isset($mobile_tools_device)){
     return $mobile_tools_device;
   }
+  
+  $device_detection = variable_get('mobile-tools-device-detection', 'mobile_tools');
+  drupal_load('module', $device_detection);
+  
   // Checking the possible arguments
   $session_time = time() + variable_get('mobile_tools_cookie_session', 3600*24*30);
   //first check if the device type is forced in the device argument
@@ -307,7 +311,6 @@
  */
 function mobile_tools_is_mobile_device() {
   $device_detection = variable_get('mobile-tools-device-detection', 'mobile_tools');
-  drupal_load('module', $device_detection);
   if ($device_detection != 'mobile_tools') {
     return module_invoke($device_detection, 'is_mobile_device');
   } 
