diff --git a/template.php b/template.php
index 442b10c..db24867 100644
--- a/template.php
+++ b/template.php
@@ -7,6 +7,7 @@ include_once(dirname(__FILE__) . '/includes/modules/theme.inc');
 include_once(dirname(__FILE__) . '/includes/modules/pager.inc');
 include_once(dirname(__FILE__) . '/includes/modules/form.inc');
 include_once(dirname(__FILE__) . '/includes/modules/admin.inc');
+include_once(dirname(__FILE__) . '/includes/modules/menu.inc');
 
 
 // Load module include files
@@ -39,8 +40,14 @@ function twitter_bootstrap_theme() {
  */
 function twitter_bootstrap_preprocess_html(&$variables) {
   global $theme_key;
-  $theme_path = drupal_get_path('theme', $theme_key);
-  
+  global $base_theme_info;
+  if (isset($base_theme_info[0]->name)) {
+    $base_theme_key = $base_theme_info[0]->name;
+    $theme_path = drupal_get_path('theme', $base_theme_key);
+  }
+  else {
+    $theme_path = drupal_get_path('theme', $theme_key);
+  }
   // Try to load the library, otherwise use dropped in files
   if (!module_exists('twitter_bootstrap_ui') ||
     (($library = libraries_load('twitter_bootstrap', 'minified')) && empty($library['loaded']))) {
