Update middleware.rb

bad thing