diff --git a/includes/jcarousel-view.tpl.php b/includes/jcarousel-view.tpl.php
index 62aa9b0..3437043 100644
--- a/includes/jcarousel-view.tpl.php
+++ b/includes/jcarousel-view.tpl.php
@@ -7,6 +7,6 @@
 ?>
 <ul class="<?php print $jcarousel_classes; ?>">
   <?php foreach ($rows as $id => $row): ?>
-    <li class="<?php print $classes[$id]; ?>"><?php print $row; ?></li>
+    <li class="<?php print $row_classes[$id]; ?>"><?php print $row; ?></li>
   <?php endforeach; ?>
 </ul>
diff --git a/includes/jcarousel.views.inc b/includes/jcarousel.views.inc
index 5e42fbb..07b6d0a 100644
--- a/includes/jcarousel.views.inc
+++ b/includes/jcarousel.views.inc
@@ -196,7 +196,6 @@ function template_preprocess_jcarousel_view(&$variables) {
 
   // Give each item a class to identify where in the carousel it belongs.
   foreach ($variables['rows'] as $id => $row) {
-    $variables['classes'][$id] = 'jcarousel-item-' . ($id + 1 + $pager_offset);
+    $variables['row_classes'][$id] = 'jcarousel-item-' . ($id + 1 + $pager_offset);
   }
-
 }
