fix ruby-hook setting