diff --git a/app/controllers/messages_controller.rb b/app/controllers/messages_controller.rb
index <HASH>..<HASH> 100644
--- a/app/controllers/messages_controller.rb
+++ b/app/controllers/messages_controller.rb
@@ -131,7 +131,7 @@ class MessagesController < ApplicationController
     end
     respond_to do |format|
       if params[:delete].present?
-        messages = params[:delete].map{|m| Message.find_by_id(m)}
+        messages = params[:delete].map{|m| Message.where(id: m).first}
       end
       if messages.present?
         messages.each do |message|
diff --git a/app/policies/message_policy.rb b/app/policies/message_policy.rb
index <HASH>..<HASH> 100644
--- a/app/policies/message_policy.rb
+++ b/app/policies/message_policy.rb
@@ -30,4 +30,7 @@ class MessagePolicy < ApplicationPolicy
   def destroy?
     show?
   end
+
+  def destroy_selected?
+  end
 end
fix deleting selected messages next-l/enju_leaf#<I>