Index: fm-directory-view.c
===================================================================
--- fm-directory-view.c	(revision 14213)
+++ fm-directory-view.c	(working copy)
@@ -4425,7 +4425,7 @@
 			GList* submenus;
 
 			submenus = nautilus_menu_get_items (menu);
-			ret = search_in_menu_items (submenus, name);
+			ret = search_in_menu_items (submenus, item_name);
 			nautilus_menu_item_list_free (submenus);
 			g_object_unref (menu);
 			if (ret) {
