Fixed bug in application.rb