fix in application_controller.rb