diff --git a/payment/uc_payment/uc_payment.module b/payment/uc_payment/uc_payment.module
index aa5fa03..1077098 100644
--- a/payment/uc_payment/uc_payment.module
+++ b/payment/uc_payment/uc_payment.module
@@ -262,10 +262,11 @@ function uc_payment_get_totals($form, $form_state) {
  */
 function theme_uc_payment_totals($variables) {
   $order = $variables['order'];
+  $line_items = uc_order_load_line_items_display($order);
 
   $output = '<table>';
 
-  foreach ($order->line_items as $line) {
+  foreach ($line_items as $line) {
     if (!empty($line['title'])) {
       $output .= '<tr><td class="title">' . filter_xss($line['title']) . ':</td>'
         . '<td class="price">' . theme('uc_price', array('price' => $line['amount'])) . '</td></tr>';
diff --git a/payment/uc_payment/uc_payment_checkout_pane.inc b/payment/uc_payment/uc_payment_checkout_pane.inc
index 7e453ff..755203c 100644
--- a/payment/uc_payment/uc_payment_checkout_pane.inc
+++ b/payment/uc_payment/uc_payment_checkout_pane.inc
@@ -13,8 +13,6 @@ function uc_checkout_pane_payment($op, &$order, $form = NULL, &$form_state = NUL
     case 'view':
       $contents['#attached']['css'][] = drupal_get_path('module', 'uc_payment') . '/uc_payment.css';
 
-      $order->line_items = uc_order_load_line_items_display($order);
-
       if (variable_get('uc_payment_show_order_total_preview', TRUE)) {
         $contents['line_items'] = array(
           '#theme' => 'uc_payment_totals',
