--- jquery_slideshow.module	2009-07-23 20:34:21.000000000 -0400
+++ jquery_slideshowNEW.module	2010-03-01 15:35:26.000000000 -0500
@@ -61,19 +61,18 @@ function theme_jquery_slideshow_formatte
         $item = $element['#item'];
         $formatter = $element['#formatter'];
         $nid = $element['#item']['nid'];
-        $node = node_load($element['#item']['nid']);;
+        $node = isset($element['#item']['nid']) ? node_load($element['#item']['nid']) : $element['#node'];
         $jq_slideshow_id = 'jq-slideshow-'. $nid .'-'. $field_name;
         $output = '<div class="jquery_slideshow" id="'. $jq_slideshow_id .'">';
         $dets = explode('__', $formatter);
         $preset = $dets[1];
         foreach ($node->{$field_name} as $image) {
-          $output .= theme('imagecache', $preset, $image['filepath'], $image['data']['alt'], $image['data']['title']);        
+          $output .= is_numeric($image['fid']) ? theme('imagecache', $preset, $image['filepath'], $image['data']['alt'], $image['data']['title']) : '';
         }
         $output .= '</div>';
         _jquery_slideshow_get_settings($jq_slideshow_id, $preset);
         return $output;
     }
-    
 }
 
 
