bugfix in application.rb