diff --git a/fusion_core/theme-settings.php b/fusion_core/theme-settings.php
index 2a8e291ad9a32c339940ce8d1a0d1a8f12c56b7b..9f9ea72696318cca6f5f416f7b0c200d90823d78 100644
--- a/fusion_core/theme-settings.php
+++ b/fusion_core/theme-settings.php
@@ -19,8 +19,8 @@
 function fusion_core_form_system_theme_settings_alter(&$form, $form_state) {
   global $base_url;
 
-  // Get theme name from url (admin/.../theme_name).
-  $theme_name = arg(count(arg()) - 1);
+  // Get theme name.
+  $theme_name = $GLOBALS['theme_key'];
 
   // Get default theme settings from .info file.
   $theme_data = list_themes();
