diff --git a/thunar/thunar-file.c b/thunar/thunar-file.c
index 8f723f78ba0b35ca47d233a472a191d3754d3587..e4c39656f9a60316ae5eb3408f3298fcf23f82c4 100644
--- a/thunar/thunar-file.c
+++ b/thunar/thunar-file.c
@@ -2286,7 +2286,7 @@ thunar_file_get_original_path (const ThunarFile *file)
   if (file->info == NULL)
     return NULL;
 
-  g_file_info_get_attribute_byte_string (file->info, "trash::orig-path");
+  return g_file_info_get_attribute_byte_string (file->info, "trash::orig-path");
 }
 
 
diff --git a/thunar/thunar-file.h b/thunar/thunar-file.h
index 7bd988770bbec028cba7dc93af30daafa2170a74..a7772983e5375531da04e39d9741f9233692bd3a 100644
--- a/thunar/thunar-file.h
+++ b/thunar/thunar-file.h
@@ -204,7 +204,7 @@ const gchar      *thunar_file_get_display_name     (const ThunarFile       *file
 gchar            *thunar_file_get_deletion_date    (const ThunarFile       *file,
                                                     ThunarDateStyle         date_style) G_GNUC_MALLOC G_GNUC_WARN_UNUSED_RESULT;
 const gchar      *thunar_file_get_original_path    (const ThunarFile       *file);
-guint32           thunar_file_get_trash_item_count (const ThunarFile       *file);
+guint32           thunar_file_get_item_count       (const ThunarFile       *file);
 
 gboolean          thunar_file_is_chmodable         (const ThunarFile       *file);
 gboolean          thunar_file_is_renameable        (const ThunarFile       *file);