diff --git a/mappers/file.inc b/mappers/file.inc
index 0b8bcf3..1c4b0e4 100644
--- a/mappers/file.inc
+++ b/mappers/file.inc
@@ -79,9 +79,8 @@ function file_feeds_set_target(FeedsSource $source, $entity, $target, array $val
       }
     }
 
-    $entity_type = $source->importer->processor->entityType();
-    $bundle = $source->importer->processor->bundle();
-
+    $entity_type = $entity->entityType();
+    $bundle = $entity->bundle();
     $instance_info = field_info_instance($entity_type, $field_name, $bundle);
 
     // Determine file destination.
