fix to application.rb