fixed error in words_controller.rb