diff --git a/app/helpers/issuables_helper.rb b/app/helpers/issuables_helper.rb
index 70ff7f9c1b2f0d242938fbb4c2b88ec893a76399..3f5af8806462fad0d1b8229bee29783176b28f77 100644
--- a/app/helpers/issuables_helper.rb
+++ b/app/helpers/issuables_helper.rb
@@ -113,10 +113,10 @@ module IssuablesHelper
   end
 
   def issuable_bulk_update_path(type)
-    if type == "issue"
-      bulk_update_namespace_project_issues_path(@project.namespace, @project)
-    else
+    if type == :merge_requests
       bulk_update_namespace_project_merge_requests_path(@project.namespace, @project)
+    else
+      bulk_update_namespace_project_issues_path(@project.namespace, @project)
     end
   end
 end
diff --git a/features/steps/project/merge_requests.rb b/features/steps/project/merge_requests.rb
index 56b289495858ddde4c21dd73e202a3c760673341..df17b5626c694ba5f65c526a516810808cd4145d 100644
--- a/features/steps/project/merge_requests.rb
+++ b/features/steps/project/merge_requests.rb
@@ -31,7 +31,9 @@ class Spinach::Features::ProjectMergeRequests < Spinach::FeatureSteps
   end
 
   step 'I click link "Closed"' do
-    click_link "Closed"
+    page.within('.issues-state-filters') do
+      click_link "Closed"
+    end
   end
 
   step 'I should see merge request "Wiki Feature"' do