diff --git a/user_import.module b/user_import.module
index e2fff39..9dbf7a1 100644
--- a/user_import.module
+++ b/user_import.module
@@ -304,10 +304,12 @@ function theme_user_import_edit($variables) {
   return $output;
 }
 
-function theme_user_import_errors_display($settings, $data, $total) {
+function theme_user_import_errors_display($settings) {
     $output = '';
+    $data = $settings['file_lines'];
+    $total = $settings['total'];
     $error_count = 0;
-    $field_match = _user_import_unconcatenate_field_match($settings['field_match']);
+    $field_match = _user_import_unconcatenate_field_match($settings['import']['field_match']);
     $header[0] = t('Email Address');
 
     foreach ($data as $data_row) {
