diff --git a/resources/node_resource.inc b/resources/node_resource.inc
index f3c9de9..d696b56 100644
--- a/resources/node_resource.inc
+++ b/resources/node_resource.inc
@@ -628,7 +628,9 @@ function _node_resource_attach_file($nid, $field_name, $attach) {
   list($files, $file_objs) = _node_resource_file_save_upload($node_type, $field_name, $options);
 
   foreach ($file_objs as $file_obj) {
-    $node->{$field_name}[LANGUAGE_NONE][$counter++] = (array)$file_obj;
+    $counter++;
+    $node->{$field_name}[LANGUAGE_NONE][$counter] = (array)$file_obj;
+    $node->{$field_name}[LANGUAGE_NONE][$counter]['display'] = 1;
   }
 
   node_save($node);
