diff --git a/js/galleria.load.js b/js/galleria.load.js
index f11eab8..4b7f609 100644
--- a/js/galleria.load.js
+++ b/js/galleria.load.js
@@ -14,6 +14,13 @@ Drupal.behaviors.galleria = {
         var id = $this.attr('id');
         var optionset = settings.galleria.instances[id];
         if (optionset) {
+          if($.isArray(settings.galleria.themepath)) {
+            for (var x in settings.galleria.optionsets[optionset]) {
+              if($.isArray(settings.galleria.optionsets[optionset][x])) {
+                settings.galleria.optionsets[optionset][x] = settings.galleria.optionsets[optionset][x][0];
+              }
+            } 
+          }
           $this.galleria(settings.galleria.optionsets[optionset]);
         }
         else {
