Index: views_plugin_style_gallery_summary.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/gallery_summary/views_plugin_style_gallery_summary.inc,v
retrieving revision 1.1
diff -u -r1.1 views_plugin_style_gallery_summary.inc
--- views_plugin_style_gallery_summary.inc	5 Nov 2009 19:50:56 -0000	1.1
+++ views_plugin_style_gallery_summary.inc	7 Nov 2009 21:41:27 -0000
@@ -55,21 +55,20 @@
         if (!isset($view)) {
           $view = views_get_view($this->view->name);
         }
-
-        $view->set_display($this->options['gallery_display']);
-
-        // TODO: This should handle multiple arguments.
-        $view->set_arguments(array($arg));
-        $view->build();
-        $view->pre_execute();
-        $view->execute();
-
+		
+		// Clones the view for reseting arguments.
+		$view = $view->clone_view();
+		
+		// Loads the choosen display.
+		$display = $this->options['gallery_display'];
+		
         // This simple flag indicates to the theme layer to make certain
         // adjustments for the embedded views.
         $view->gallery_summary = TRUE;
-
+		
+		// TODO: This should handle multiple arguments.
         //Attach the output of this view to the main item.
-        $row->gallery = $view->render();
+        $row->gallery = $view->preview($display, array($arg));
       }
     }
   }

