Update hooks.rb

made a change that will cause an error