awful bug in application_helper.rb