diff --git a/admin_theme.module b/admin_theme.module
index bac5987..7c169aa 100644
--- a/admin_theme.module
+++ b/admin_theme.module
@@ -131,6 +131,7 @@ function admin_theme_form_system_themes_form_alter_submit($form, &$form_state) {
 function admin_theme_custom_theme() {
   $admin_theme_disallow = FALSE;
   $admin_theme = FALSE;
+  $default_theme = array(variable_get('theme_default', '0'));
   
   // check if some paths are disallow to get the theme
   if (trim(variable_get('admin_theme_path_disallow', '')) != '') {
@@ -146,7 +147,7 @@ function admin_theme_custom_theme() {
 
   // we should not show the admin theme if the user has no access or the path is in the disallow list
   if (!user_access('access admin theme') || $admin_theme_disallow) {
-    return;
+    return $default_theme;
   }
   
   // check if an option is enabled and if it results to TRUE
@@ -171,10 +172,10 @@ function admin_theme_custom_theme() {
   }
   // Use the admin theme for the current request (if global admin theme setting is checked).
   if ($admin_theme) {
-    return variable_get('admin_theme');
+    return array(variable_get('admin_theme'));
   }
   
-  return;
+  return $default_theme;
 }
 
 /**
