fixed hash.rb